package daoInterface;

import java.sql.SQLException;

import dto.Purchase;

public interface PurchaseDao
{
public void add (Purchase purchase) throws SQLException, Exception;
public void update (Purchase purchase) throws SQLException, Exception;
public void delete (Purchase purchase) throws SQLException, Exception;
public Purchase retrieve(String ConditionField, String ConditionValue) throws SQLException, Exception;
public Purchase[] retrieveArray(String ConditionField, String ConditionValue) throws SQLException, Exception;
public Purchase[] retrieveAll() throws SQLException, Exception;
public int getAutoGenratedKey();

}